from PyQt5.QtGui.QRawFont import weight


class Person:
    def __init__(self,name,age,height,weight):
        self.name = name
        self.age = age
        self.height = height
        self.weight = weight

    def __str__(self):
        """
        重写str，打印对象得到的值，就是这个方法返回的值
        :return:
        """
        return f'{self.name} 的体重是{self.weight}'

    def run(self):
        """跑步"""
        print(f'{self.name} 爱跑步锻炼，体重减少')
        self.weight -= 0.5


    def run(self):
        print(f'{self.name} 在 run')

    def eat(self):
        print('eat')



    def __del__(self):
        print('对象将被销毁')

